﻿using RpcCentral.Service.Interface;
using RpcCentral.Service.Route;
using RpcModel.Server;
namespace RpcCentral.Service.Event
{
    internal class ServiceHeartbeatEvent : TcpRoute<ServiceHeartbeat>
    {
        private IHeartbeatService _Service;
        public ServiceHeartbeatEvent(IHeartbeatService service) : base()
        {
            _Service = service;
        }
        protected override void ExecAction(ServiceHeartbeat param, string clientIp)
        {
            _Service.Heartbeat(param, clientIp);
        }
    }
}
